package com.clarence.dada.core.redis.operator.type;


import com.clarence.dada.core.redis.constants.RedisConstants;
import com.clarence.dada.core.redis.operator.AbstractRedisCacheOperator;
import com.clarence.dada.modular.system.role.entity.SysRoleEntity;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * 角色信息的缓存
 *
 * @author fengshuonan
 * @since 2021/7/29 23:29
 */
public class RoleRedisCache extends AbstractRedisCacheOperator<SysRoleEntity> {

    public RoleRedisCache(RedisTemplate<String, SysRoleEntity> redisTemplate) {
        super(redisTemplate);
    }

    @Override
    public String getCommonKeyPrefix() {
        return RedisConstants.ROLE_INFO_CACHE_PREFIX;
    }

}